package com.youcheng.dao;

public class Admin {

    private int id;
    private String username;
    private String password;
    private int is_lock;
    private String token;
    private int token_expire;
    private int create_at;
    private int update_at;
    private int login_times;

    public Admin() {
    }

    public Admin(int id, String username, String password, int is_lock, String token, int token_expire, int create_at, int update_at, int login_times) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.is_lock = is_lock;
        this.token = token;
        this.token_expire = token_expire;
        this.create_at = create_at;
        this.update_at = update_at;
        this.login_times = login_times;
    }

    public Admin(String username, String password, int create_at) {
        this.username = username;
        this.password = password;
        this.create_at = create_at;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getIs_lock() {
        return is_lock;
    }

    public void setIs_lock(int is_lock) {
        this.is_lock = is_lock;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getToken_expire() {
        return token_expire;
    }

    public void setToken_expire(int token_expire) {
        this.token_expire = token_expire;
    }

    public int getCreate_at() {
        return create_at;
    }

    public void setCreate_at(int create_at) {
        this.create_at = create_at;
    }

    public int getUpdate_at() {
        return update_at;
    }

    public void setUpdate_at(int update_at) {
        this.update_at = update_at;
    }

    public int getLogin_times() {
        return login_times;
    }

    public void setLogin_times(int login_times) {
        this.login_times = login_times;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", is_lock=" + is_lock +
                ", token='" + token + '\'' +
                ", toke_expire=" + token_expire +
                ", create_at=" + create_at +
                ", update_at=" + update_at +
                ", login_times=" + login_times +
                '}';
    }
}
